function ele_click(el) {
	var ev = document.createEvent("MouseEvent");
	ev.initMouseEvent(
		"click",
		true /* bubble */, true /* cancelable */,
		window, null,
		0, 0, 0, 0, /* coordinates */
		false, false, false, false, /* modifier keys */
		0 /*left*/, null
	);
	el.dispatchEvent(ev);
}
function hasClass(className,node){
	var classNames = node.className.split(/\s+/);
	for(var i = 0; i < classNames.length; i++){
		if(classNames[i] == className){
			return true;
		}
	}
	return false;
}